package com.yikome.purchase.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import com.yikome.common.CommonRepository;
import com.yikome.purchase.entity.PendingPurchaseProduct;

@Repository
public interface PendingPurchaseProductRepository extends CommonRepository<PendingPurchaseProduct, Long> {

	Page<PendingPurchaseProduct> findByPendingPurchaseCode(String pendingPurchaseCode, Pageable pageable);
	
	List<PendingPurchaseProduct> findByPendingPurchaseCode(String pendingPurchaseCode);

	PendingPurchaseProduct findByPendingPurchaseCodeAndProductSkuBarcode(String pendingPurchaseCode , String productSkuBarcode);
}
